#pragma once
#include "OpenGLObject.h"
class BufferObject :
	public OpenGLObject
{
public:
	BufferObject();
	virtual ~BufferObject();

	virtual void Bind() override;
	virtual void Unbind() override;
	GL_CLASS_TYPE(GL_BUFFER)

	void SetData(const void *data, unsigned int len, GLenum type = GL_STATIC_DRAW);
	void SetSubData(const void *data, unsigned int len, unsigned int index = 0);
};

